import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/home/Home.vue')
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/about/About.vue')
  }
  ,
  {
    path: '/create/:id',
    name: 'Create',
    component: () => import('../views/create/Create.vue')
  },
  {
    path: '/article',
    name: 'Article',
    component: () => import('../views/article/Article.vue')
  },
  {
    path: '/user',
    name: 'User',
    component: () => import('../views/user/User.vue')
  },
  {
    path: '/data',
    name: 'Data',
    component: () => import('../views/data/Data.vue')
  },
  {
    path: '/workClass',
    name: 'WorkClass',
    component: () => import('../views/workClass/workClass.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/login/login.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
